﻿<%@ Page Language="vb" AutoEventWireup="false" CodeFile="ContainerManagePlatForm.aspx.vb"
    Inherits="InSiteWebApplication.ContainerManagePlatForm" %>

<%@ Register Src="/InSiteWebApplication/uMESCustomControls/pageTurning/pageTurning.ascx" TagName="pageTurning"
    TagPrefix="uPT" %>
<%@ Register Assembly="Infragistics4.WebUI.Misc.v11.1, Version=11.1.20111.2158, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb"
    Namespace="Infragistics.WebUI.Misc" TagPrefix="igmisc" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>ContainerManagePlatForm</title>
     <style type="text/css"> 
        .popupClass
        {
            display:none;
            position :absolute ;
            top:0px;
            left:0px;
            width:100%;
            height:100%;
            padding:0px;
            border:0px solid orange;
            background:rgba(242,242,242,0.5);
            filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#7Ff2f2f2,endColorstr=#7Ff2f2f2);
            color:#aaa;
            font-size:20px;
            z-index:1001;
            overflow:auto;
            text-align :center ;
            }
          .popupClass div
          {
              position :absolute ;
              left:50%;
              top:50%;
              margin-top:-20px;
              margin-left:-200px;
              font-family :微软雅黑;
              }
           .disable_Class
           {
               width:100%;
               height:100%;
               background-color:#FFF;
               }
    </style>

    <link href="/InSiteWebApplication/Content/Easyui/themes/metro/easyui.css" rel="stylesheet" />
    <link href="/InSiteWebApplication/Content/Easyui/custom-easyui.css" rel="stylesheet" />
    <link href="/InSiteWebApplication/Content/Easyui/themes/icon.css" rel="stylesheet" />
<script src="/InSiteWebApplication/Scripts/CustomPageJs/ReferenceJsLib.js" type="text/javascript"></script>
<script src="/InSiteWebApplication/Content/Easyui/jquery.min.js" type="text/javascript"></script>
<script src="/InSiteWebApplication/Content/Easyui/jquery.easyui.min.js" type="text/javascript"></script>
<script src="/InSiteWebApplication/Content/Easyui/easyui-lang-zh_CN.js" type="text/javascript"></script>
<script src="/InSiteWebApplication/Scripts/CustomPageJs/CustomCommon.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">
        function openChangeWorkflowPage(pageName,popPageProperties) {
            var retVal = window.showModalDialog(pageName,"",popPageProperties);
            if (retVal) {
                document.getElementById("popupClosedButton").click();
            }
        }

        function openChangeWFPage(param, isPausePage) {
            var url = "MoveNonStandPopupPage.html?v=" + new Date().getTime();
            url += "&parentDiv=dg&pausePage=" + isPausePage;
            //url += "&param=" + encodeURIComponent(param);
            //prompt("",url);
            $('#dg').dialog({
                title: '批次调度',
                fit: false,
                top: 10,
                width: 900,
                height:480,
                closed: false,
                cache: false,
                modal: true,
                content: '<iframe src="' + url + '" width="100%" height="99%" frameborder="0" scrolling="auto"></iframe>',
                returnData: null,
                popupData: param, //弹出页面的传参
                onClose: function () {
                    var returnData = $("#dg").dialog('options').returnData; //返回数据
                    if (returnData == true) {
                        document.getElementById("popupClosedButton").click();
                        //displayMessage("添加成功", true);
                    }
                }
            });
        }
    </script>
</head>
<!-- Caution: modifying the id and runat attributes of the body will affect the integrity of the application. -->
<body class="FormBody" id="bodyControl" runat="server" style="height:100%;overflow:hidden;overflow-x: scroll">
    <!-- Caution: modifying the id and runat attributes of the form will affect the integrity of the application. -->
    <form id="formControl" method="post" runat="server" style="width: 1600px;height:100%;" >
    <%--<asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>--%>
    <div id="dvOperateArea" runat="server" style="">
        <div class="ufcSectionStyle">
            <span class="ufcSectionSpanStyle">查询区域</span>
        </div>
        <div style="width: 100%; margin: 3px 0px 3px 3px; position: relative">
            <fb:Container ID="txtContainer" runat="server" AutoPostBack="True" LabelControl-Text="扫描流水卡"
                LabelControl-ForeColor="Red" TextControl-Width="150px" Style="float: left" />
            <fb:Container ID="txtMfgOrderName" runat="server" AutoPostBack="True" LabelControl-Text="生产订单号"
                LabelControl-ForeColor="Red" TextControl-Width="150px" Style="float: left; margin-left: 10px" />
            <fb:TextBox ID="txtMotorNo" runat="server" LabelControl-Text="发动机号" TextControl-Width="140px"
                Visible="false" Style="z-index: 103; float: left; margin-left: 10px" />
            <fb:TextBox ID="ProductName" runat="server" LabelControl-Text="件号" TextControl-Width="140px"
                Style="z-index: 103; float: left; margin-left: 10px" />
            <fb:TextBox ID="txtContainerName" runat="server" LabelControl-Text="批次号" TextControl-Width="140px"
                Style="z-index: 103; float: left; margin-left: 10px" />
            <fb:TextBox ID="txtMainStage" runat="server" LabelControl-Text="大阶段字段" TextControl-Width="140px"
                Visible="false" Style="z-index: 103; float: left; margin-left: 10px" />
            <fb:TextBox ID="ProductDesc" runat="server" LabelControl-Text="产品名称" TextControl-Width="140px"
                Style="z-index: 103; float: left; margin-left: 10px" Visible="false" />
            <fb:TextBox ID="txtCurSpecName" runat="server" LabelControl-Text="当前工序" TextControl-Width="140px"
                Style="z-index: 103; position: absolute; left: 799px; top: 43px;" Visible="false" />
            <fb:TextBox ID="txtCurSpecNo" runat="server" LabelControl-Text="工序号" TextControl-Width="140px"
                Style="z-index: 103; float: left; margin-left: 10px" />
            <fb:DropDownList runat="server" ID="ddlContainerStatus" DisplayMode="DropDown" Style="z-index: 103;
                float: left; margin-left: 10px" DropDownControl-Width="100px" AutoPostBack="true"
                LabelControl-Text="批次状态" />
            <fb:DropDownList runat="server" ID="ddlPause" DisplayMode="DropDown" Style="z-index: 103;
                float: left; margin-left: 10px" DropDownControl-Width="60px" AutoPostBack="true"
                LabelControl-Text="是否暂停" />
            <fb:Label runat="server" ID="lblType" Visible="false"></fb:Label>
            <fb:Button ID="btnSearch" runat="server" DisplayInFrame="false" Text="查询" Style="z-index: 103;
                float: left; margin-left: 20px; margin-top: 14px" />
            <fb:Button ID="btnReset" runat="server" DisplayInFrame="false" Text="重置" Style="z-index: 103;
                float: left; margin-left: 20px; margin-top: 14px" />
        </div>
        <div class="ufcSectionStyle">
            <span class="ufcSectionSpanStyle">批次列表</span>
        </div>
        <div id="dvGrid" runat="server" style="margin: 3px 0 3px 3px; min-width:1600px;">
            <igmisc:WebAsyncRefreshPanel ID="WebAsyncRefreshPanel" runat="server" Width="100%">
                <div id="dvMainContainer" runat="server" style='width: 800px; float: left'>
                    <fbg:WebGrid ID="wgMainContainer" runat="server">
                        <Bands>
                            <igtbl:UltraGridBand Key="sumContainer">
                                <columns>
                    <igtbl:UltraGridColumn BaseColumnName="MFGORDERNAME" key="MfgOrderName" headerText="生产订单" width="100px" >
                        </igtbl:UltraGridColumn>
                </columns>
                                <addnewrow view="NotSet" visible="NotSet">
                    </addnewrow>
                            </igtbl:UltraGridBand>
                        </Bands>
                        <DisplayLayout AllowColSizingDefault="Free" AllowColumnMovingDefault="OnServer" BorderCollapseDefault="Separate"
                            Name="wgResult" RowHeightDefault="24px" SelectTypeRowDefault="Single" StationaryMargins="Header"
                            StationaryMarginsOutlookGroupBy="True" TableLayout="Fixed" Version="4.00" AutoGenerateColumns="False"
                            AllowRowNumberingDefault="ByDataIsland" CellClickActionDefault="CellSelect" ViewType="OutlookGroupBy">
                            <FrameStyle BorderColor="#A5ACB2" BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana"
                                Font-Size="8pt" Height="265px" Width="100%">
                            </FrameStyle>
                            <RowAlternateStyleDefault BackColor="#86DFD9" CssClass="GridRowAlternateStyle">
                                <Padding Left="0px"></Padding>
                            </RowAlternateStyleDefault>
                            <Pager PageSize="100">
                                <PagerStyle BackColor="LightGray" BorderStyle="Solid" BorderWidth="1px">
                                    <BorderDetails ColorLeft="White" ColorTop="White"></BorderDetails>
                                </PagerStyle>
                            </Pager>
                            <EditCellStyleDefault BorderStyle="None" BorderWidth="0px" CssClass="GridEditCellStyle">
                            </EditCellStyleDefault>
                            <FooterStyleDefault BackColor="#D6F1FF" BorderStyle="Solid" BorderWidth="1px">
                                <BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px" />
                            </FooterStyleDefault>
                            <HeaderStyleDefault BackColor="LightGray" BorderStyle="Solid" CssClass="GridHeaderStyle"
                                Height="100%" Wrap="True">
                                <Padding Top="2px" Bottom="3px"></Padding>
                                <BorderDetails ColorLeft="White" ColorTop="White"></BorderDetails>
                            </HeaderStyleDefault>
                            <RowSelectorStyleDefault>
                                <Padding Left="0px"></Padding>
                            </RowSelectorStyleDefault>
                            <RowStyleDefault BackColor="White" BorderColor="Gray" BorderStyle="Solid" BorderWidth="1px"
                                CssClass="GridRowStyle" Font-Names="Verdana" Font-Size="8pt">
                                <Padding Left="3px"></Padding>
                                <BorderDetails ColorLeft="White" ColorTop="White"></BorderDetails>
                            </RowStyleDefault>
                            <GroupByRowStyleDefault BackColor="Control" BorderColor="Window">
                            </GroupByRowStyleDefault>
                            <SelectedRowStyleDefault CssClass="GridSelectedRowStyle">
                            </SelectedRowStyleDefault>
                            <GroupByBox Hidden="True">
                                <BoxStyle BackColor="ActiveBorder" BorderColor="Window">
                                </BoxStyle>
                            </GroupByBox>
                            <AddNewBox>
                                <BoxStyle BackColor="LightGray" BorderStyle="Solid" BorderWidth="1px">
                                    <BorderDetails ColorLeft="White" ColorTop="White"></BorderDetails>
                                </BoxStyle>
                            </AddNewBox>
                            <ActivationObject BorderColor="" BorderWidth="">
                            </ActivationObject>
                            <FilterOptionsDefault FilterUIType="HeaderIcons">
                                <FilterDropDownStyle BackColor="White" BorderColor="Silver" BorderStyle="Solid" BorderWidth="1px"
                                    CustomRules="overflow:auto;" Font-Names="Verdana,Arial,Helvetica,sans-serif"
                                    Font-Size="8pt" Height="200px" Width="200px">
                                    <Padding Left="2px" />
                                </FilterDropDownStyle>
                                <FilterHighlightRowStyle BackColor="#151C55" ForeColor="White">
                                </FilterHighlightRowStyle>
                                <FilterOperandDropDownStyle BackColor="White" BorderColor="Silver" BorderStyle="Solid"
                                    BorderWidth="1px" CustomRules="overflow:auto;" Font-Names="Verdana,Arial,Helvetica,sans-serif"
                                    Font-Size="8px">
                                    <Padding Left="2px" />
                                </FilterOperandDropDownStyle>
                            </FilterOptionsDefault>
                        </DisplayLayout>
                    </fbg:WebGrid>
                    <div id="dvPg" runat="server" style="text-align: right; position: relative; left: 3px;">
                        <uPT:pageTurning ID="upageTurning" runat="server" />
                    </div>
                </div>
                <div id="dvContainerNo" runat="server" style="float: left; width: 790px; margin-left: 3px">
                    <fbg:WebGrid ID="wgContainerNo" runat="server">
                        <Bands>
                            <igtbl:UltraGridBand Key="sumContainer">
                                <columns>
                            <igtbl:UltraGridColumn BaseColumnName="ContainerName" key="ContainerName" headerText="批次号" width="150px" >
                                </igtbl:UltraGridColumn>
                        </columns>
                                <addnewrow view="NotSet" visible="NotSet">
                            </addnewrow>
                            </igtbl:UltraGridBand>
                        </Bands>
                        <DisplayLayout AllowColSizingDefault="Free" AllowColumnMovingDefault="OnServer" BorderCollapseDefault="Separate"
                            Name="wgResult" RowHeightDefault="24px" SelectTypeRowDefault="Single" StationaryMargins="Header"
                            StationaryMarginsOutlookGroupBy="True" TableLayout="Fixed" Version="4.00" AutoGenerateColumns="False"
                            AllowRowNumberingDefault="ByDataIsland" CellClickActionDefault="CellSelect" ViewType="OutlookGroupBy">
                            <FrameStyle BorderColor="#A5ACB2" BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana"
                                Font-Size="8pt" Height="265px" Width="100%">
                            </FrameStyle>
                            <RowAlternateStyleDefault BackColor="#86DFD9" CssClass="GridRowAlternateStyle">
                                <Padding Left="0px"></Padding>
                            </RowAlternateStyleDefault>
                            <Pager PageSize="100">
                                <PagerStyle BackColor="LightGray" BorderStyle="Solid" BorderWidth="1px">
                                    <BorderDetails ColorLeft="White" ColorTop="White"></BorderDetails>
                                </PagerStyle>
                            </Pager>
                            <EditCellStyleDefault BorderStyle="None" BorderWidth="0px" CssClass="GridEditCellStyle">
                            </EditCellStyleDefault>
                            <FooterStyleDefault BackColor="#D6F1FF" BorderStyle="Solid" BorderWidth="1px">
                                <BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px" />
                            </FooterStyleDefault>
                            <HeaderStyleDefault BackColor="LightGray" BorderStyle="Solid" CssClass="GridHeaderStyle"
                                Height="100%" Wrap="True">
                                <Padding Top="2px" Bottom="3px"></Padding>
                                <BorderDetails ColorLeft="White" ColorTop="White"></BorderDetails>
                            </HeaderStyleDefault>
                            <RowSelectorStyleDefault>
                                <Padding Left="0px"></Padding>
                            </RowSelectorStyleDefault>
                            <RowStyleDefault BackColor="White" BorderColor="Gray" BorderStyle="Solid" BorderWidth="1px"
                                CssClass="GridRowStyle" Font-Names="Verdana" Font-Size="8pt">
                                <Padding Left="3px"></Padding>
                                <BorderDetails ColorLeft="White" ColorTop="White"></BorderDetails>
                            </RowStyleDefault>
                            <GroupByRowStyleDefault BackColor="Control" BorderColor="Window">
                            </GroupByRowStyleDefault>
                            <SelectedRowStyleDefault CssClass="GridSelectedRowStyle">
                            </SelectedRowStyleDefault>
                            <GroupByBox Hidden="True">
                                <BoxStyle BackColor="ActiveBorder" BorderColor="Window">
                                </BoxStyle>
                            </GroupByBox>
                            <AddNewBox>
                                <BoxStyle BackColor="LightGray" BorderStyle="Solid" BorderWidth="1px">
                                    <BorderDetails ColorLeft="White" ColorTop="White"></BorderDetails>
                                </BoxStyle>
                            </AddNewBox>
                            <ActivationObject BorderColor="" BorderWidth="">
                            </ActivationObject>
                            <FilterOptionsDefault FilterUIType="HeaderIcons">
                                <FilterDropDownStyle BackColor="White" BorderColor="Silver" BorderStyle="Solid" BorderWidth="1px"
                                    CustomRules="overflow:auto;" Font-Names="Verdana,Arial,Helvetica,sans-serif"
                                    Font-Size="8pt" Height="200px" Width="200px">
                                    <Padding Left="2px" />
                                </FilterDropDownStyle>
                                <FilterHighlightRowStyle BackColor="#151C55" ForeColor="White">
                                </FilterHighlightRowStyle>
                                <FilterOperandDropDownStyle BackColor="White" BorderColor="Silver" BorderStyle="Solid"
                                    BorderWidth="1px" CustomRules="overflow:auto;" Font-Names="Verdana,Arial,Helvetica,sans-serif"
                                    Font-Size="8px">
                                    <Padding Left="2px" />
                                </FilterOperandDropDownStyle>
                            </FilterOptionsDefault>
                        </DisplayLayout>
                    </fbg:WebGrid>
                    <div style="width: 200px; top: 3px; position: relative; float: left;">
                        <fb:Button ID="btnSelectAll" runat="server" DisplayInFrame="false" Text="全选" Style="position: relative;
                            float: left; left: 0px; width: 50px; top: 1px;" />
                        <fb:Button ID="btnReverseSelect" runat="server" DisplayInFrame="false" Text="全不选"
                            Style="position: relative; float: left; left: 10px; width: 60px; top: 0px;" />
                    </div>
                </div>
            </igmisc:WebAsyncRefreshPanel>
        </div>
        <div class="ufcSectionStyle">
            <span class="ufcSectionSpanStyle">按钮区域</span>
        </div>
        <div id="dvBtn" runat="server" style="margin: 3px 0 3px 3px">
            <fb:PopupLinkButton ID="pupChangeName" runat="server" DisplayInFrame="false" Text="工艺员修改"
                Style="z-index: 200; float: left; height: 20px; line-height: 20px; text-align: center;"
                PageName="ChangeEngineerNamePopupForm.aspx" Enabled="true" PopupHeight="350"
                PopupWidth="900" Width="110px"></fb:PopupLinkButton>
            <fb:PopupLinkButton ID="btnMoveNonStand" runat="server" DisplayInFrame="false" Text="批次调度-旧"
                Style="z-index: 200; float: left; margin-left: 20px; height: 20px; line-height: 20px;
                text-align: center;" PageName="MoveNonStandPopupForm.aspx" Enabled="true" Visible="false"
                PopupHeight="340" PopupWidth="900" Width="100px"></fb:PopupLinkButton>
            <fb:PopupLinkButton ID="btnMoveNonStand2" runat="server" DisplayInFrame="false" Text="批次调度"
                Style="z-index: 200; float: left; margin-left: 20px; height: 20px; line-height: 20px;
                text-align: center;" PageName="MoveNonStandPopupPage.html" Enabled="true" Visible="true"
                PopupHeight="400" PopupWidth="900" Width="100px"></fb:PopupLinkButton>
            <fb:PopupLinkButton ID="btnRelease" runat="server" DisplayInFrame="false" Text="批次释放"
                Style="z-index: 200; float: left; margin-left: 20px; height: 20px; line-height: 20px;
                text-align: center;" PageName="MoveNonStandPopupPage.html" Enabled="true" Visible="true"
                PopupHeight="400" PopupWidth="900" Width="100px"></fb:PopupLinkButton>
            <fb:PopupLinkButton ID="btnClose" runat="server" DisplayInFrame="false" Text="批次关闭"
                Style="z-index: 200; height: 20px; line-height: 20px; float: left; margin-left: 20px;
                text-align: center;" PageName="ClosePopupForm.aspx" Enabled="true" PopupHeight="530"
                PopupWidth="860" Width="80px"></fb:PopupLinkButton>
            <fb:Button ID="btnChangeClose" runat="server" DisplayInFrame="false" Text="变号批次关闭"
                Style="float: left; margin-left: 20px; height: 23px; text-align: center;" Width="100px" />
            <fb:Button ID="btnMoveIn" runat="server" DisplayInFrame="false" Text="批次移入" Style="float: left;
                margin-left: 20px; height: 20px; line-height: 20px; text-align: center;" Visible="false"
                Width="100px" />
            <fb:PopupLinkButton ID="btnOPen" runat="server" DisplayInFrame="false" Text="批次打开"
                Enabled="false" Style="z-index: 200; float: left; margin-left: 20px; height: 20px;
                line-height: 20px; text-align: center;" PageName="OpenPopupForm.aspx" PopupHeight="420"
                PopupWidth="860" Width="100px"></fb:PopupLinkButton>
            <fb:PopupLinkButton ID="btnChangeQty" runat="server" DisplayInFrame="false" Text="数量变更"
                Style="z-index: 200; float: left; margin-left: 20px; height: 20px; line-height: 20px;
                text-align: center;" PageName="ChangeQtyPopupForm.aspx" PopupHeight="520" PopupWidth="730"
                Width="100px"></fb:PopupLinkButton>
            <fb:PopupLinkButton ID="btnContainerDel" runat="server" DisplayInFrame="false" Text="批次删除"
                Style="float: left; margin-left: 20px; text-align: center; height: 20px; line-height: 20px;" PageName="DeleteContainerPopupForm.aspx"
                PopupHeight="500" PopupWidth="720" Width="100px"></fb:PopupLinkButton>
            <fb:Button ID="btnInStore" runat="server" DisplayInFrame="false" Text="加工完成" Style="float: left;
                margin-left: 20px; height: 23px; text-align: center;" Width="100px" />
            <fb:PopupLinkButton ID="pupSurpassInfo" runat="server" PageName="../SurpassBillPopupForm.aspx"
                Text="超越单" DisplayInFrame="false" Width="100px" PopupHeight="420px" PopupModalStyle="Modal"
                PopupWidth="800px" Style="float: left; margin-left: 20px; height: 20px; line-height: 20px;
                text-align: center;"></fb:PopupLinkButton>
            <fb:PopupLinkButton ID="pupDocumentView" runat="server" PageName="../ProcessDocumentViewPopupForm.aspx"
                Text="文档查看" DisplayInFrame="False" Width="95px" PopupHeight="590px" PopupModalStyle="Independent"
                PopupWidth="670px" 
                Style="float: left; margin-left: 10px;line-height: 20px; height: 24px;"></fb:PopupLinkButton>
            <fb:Button ID="btnAutoCheckCur" runat="server" DisplayInFrame="false" Text="自动检查当前状态"  OnClientClick="disable_btn(this.id)"
                ToolTip ="适用于频繁撤销、调度等造成的当前信息错误" UseSubmitBehavior="False" Style="float: left;
                margin-left: 20px; height: 25px; line-height: 19px; text-align: center;" Visible="true"
                Width="130px" />
            <div style="clear: both">
            </div>
        </div>
    </div>
    <div style="margin-top: 10px;">
        <asp:Label ID="StatusMessage" runat="server" Text="" Width="100%"></asp:Label>
        <asp:Button ID="popupClosedButton" runat="server" Width="0px" />
        <asp:Button ID="popupClosedButton2" runat="server" Width="0px" />
    </div>

    <div id="PopupDiv" runat="server" class ="popupClass" style=""><div>处理中，请稍后……</div></div>
    <div id="dg" ></div>
    </form>

</body>
</html>
<script type="text/javascript">    

</script>
